package com.note.app.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 评论DTO
 */
@Data
@Schema(description = "评论信息")
public class CommentDTO {
    
    @Schema(description = "评论ID", example = "1")
    private Long id;
    
    @Schema(description = "所属笔记ID", example = "1")
    private Long noteId;
    
    @Schema(description = "评论用户ID", example = "1")
    private Long userId;
    
    @Schema(description = "评论用户名称", example = "张三")
    private String userName;
    
    @Schema(description = "用户头像URL", example = "https://example.com/avatar/1.jpg")
    private String userAvatar;
    
    @Schema(description = "评论内容", example = "这是一条评论")
    private String content;
    
    @Schema(description = "创建时间", example = "2023-10-01T12:00:00")
    private LocalDateTime createdAt;
} 